<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('Banner/index')}">滚动图列表</a></li>
        <li><a href="{:url('Banner/add')}">添加滚动图</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="get" action="{:url('Banner/index')}">
        <input type="text" class="form-control" name="selkey" style="width: 120px;"  placeholder="支持id">
        <input type="submit" class="btn btn-primary" value="搜索" />
        <a class="btn btn-danger" href="{:url('Banner/index')}">清空</a>
    </form>
    <table class="table table-hover table-bordered table-list">
        <thead>
        <tr>
            <th width="16"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
            <th width="50">排序</th>
            <th width="50">ID</th>
            <th width="100">图片名称</th>
            <th width="100">图片</th>
            <th width="100">跳转地址</th>
            <th>创建时间</th>
            <th>修改时间</th>
            <th width="50">{:lang('STATUS')}</th>
            <th width="120">{:lang('ACTIONS')}</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="list" item="vo">
            <tr>
                <td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value=""></td>
                <td><input name='' class="input input-order mr5" type='text' size='3' value=''></td>
                <td>{$vo.id}</td>
                <td>{$vo.banner_name}</td>
                <td><img src="{$vo.banner_image}" width="100px"></td>
                <td>{$vo.banner_url}</td>
                <td>{$vo.create_time}</td>
                <td>{$vo.update_time}</td>
                <td>
                    <switch name="$vo.switch">
                        <case value="1"><a href="{:url('Banner/show')}?id={$vo.id}" class="js-ajax-dialog-btn" data-msg="是否不展示？"><button type="button" class="btn btn-success">是</button></a></case>
                        <case value="0"><a href="{:url('Banner/show')}?id={$vo.id}" class="js-ajax-dialog-btn" data-msg="是否不展示？"><button type="button" class="btn btn-danger">否</button></a></case>
                    </switch>
                </td>
                <td>
                    <a class="btn btn-xs btn-primary" href="{:url('Banner/edit')}?id={$vo.id}">{:lang('EDIT')}</a>
                    <a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('Banner/delete')}?id={$vo.id}">{:lang('DELETE')}</a>
                </td>
            </tr>
        </foreach>
        </tbody>
    </table>
    <div class="pagination">{$list->render()}</div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>